import ODOO from 'odoojs-dva'

//import ODOO from './odoojs-dva'


//const host = 'http://192.168.56.101:8069';
//const host = 'http://192.168.56.102:8069';
//const host = 'http://www.bjssrs.cn:8069';

const host = '/api';

const db = 'T0';

const get_modules = () => {
  const {
    base,
    account,
    ow_account,
    ow_account_balance,
    hr,
    hr_payroll,
    l10n_cn_hr_payroll,
  } = ODOO.addons;

  return {
    base,
    account,
    ow_account,
    ow_account_balance,
    hr,
    hr_payroll,
    l10n_cn_hr_payroll,
  };

}

const modules = get_modules()

const odoo = new ODOO({ host, db, modules // success, error
} );
console.log(odoo)
export default odoo

